<!-- 文章类型的广告 -->
<?php
    if ($this->is('index')) {
        $this->widget('Widget_Post_Recommend', 'pageSize=2')->to($items);
    } else {
        $this->widget('Widget_Post_Recommend')->to($items);
    }
?>
<?php while($items->next()): ?>
    <article class="excerpt-minic excerpt-minic-index">
        <h2>
            <span class="red">【推荐】</span>
            <a target="_blank"
               href="<?php $items->permalink(); ?>" title="<?php $items->title(); ?>">
                <?php $items->title(); ?>
            </a>
        </h2>
        <p class="note"><?php $items->excerpt(); ?></p>
    </article>
<?php endwhile; ?>